#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    ui->verticalLayout->setSpacing(0);
    ui->verticalLayout->setMargin(0);
    ui->gridLayout->setSpacing(0);
    ui->gridLayout->setSpacing(0);
    ui->label->setStyleSheet("#label {color:green; background: rgb(30, 30, 30); margin: 0.1px; padding:0.1px;} ");

    player_ = new MediaPlayer(ui->label);
    ui->gridLayout->addWidget(player_, 0, 0, 1, 1);
    player_->setObjectName(QStringLiteral("MediaPlayer"));
    player_->setStyleSheet("#MediaPlayer {color:red; background: rgb(255, 255, 255); margin: 0.1px; padding:0.1px;}");
    player_->show();
}

MainWindow::~MainWindow()
{
    delete ui;
}
